import request from '@/utils/request'
import linq from 'linq'
export async function getCxxs(){
    //
    
    let res =  await request({
        url: '/Cxxss',
        method: 'get',
      })
      
    return res.data.value;
    //
    
}
export async function bulkAddCxxs(data){
  //
  
  let res =  await request({
      url: '/Cxxss/BulkAddCxxs',
      method: 'post',
      data:data
    })
  return res.data.value;
  //
  
}
export async function updateCxxs(model){
    let res =  await request({
        url: `/Cxxss(${model.ID})`,
        method: 'put',
        data: model
      })
      
      return res.data;
}
export async function deleteCxxs(model){
   
  
    let res = await  request({
        url: `/Cxxss/${model.ID}`,
        method: 'delete',
      })
      
      return res.data;
}
export async function addCxxs(model){
   
   
    let res =  await request({
      url: '/Cxxss',
      method: 'post',
      data: model,
    })
    
    return res.data;
}